home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / migcmd / syscalls.h < prev   
Encoding:
C/C++ Source or Header  |  1988-12-06  |  1.2 KB  |  43 lines

  1. /*
  2.  * syscalls.h --
  3.  *
  4.  *    Declaration of the structure used by some user programs to print
  5.  *    information about system call use.
  6.  *
  7.  * Copyright 1988 Regents of the University of California
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that the above copyright
  11.  * notice appear in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  *
  16.  * $Syscalls: proto.h,v 1.2 88/03/11 08:39:40 ouster Exp $ SPRITE (Berkeley)
  17.  */
  18.  
  19. #ifndef _SYSCALLS
  20. #define _SYSCALLS
  21.  
  22. /*
  23.  * List of system calls to print out, corresponding to call number.
  24.  * Whether or not they're local should be taken from some other
  25.  * file in the kernel rather than repeated here....
  26.  */
  27.  
  28. typedef struct {
  29.     char *name;
  30.     int local;
  31. } SysCallInfo;
  32.  
  33. extern SysCallInfo sysCallArray[];
  34.  
  35. /*
  36.  * sizeof won't work in a different file from where the array is allocated,
  37.  * so we declare a variable for it in the same file.
  38.  */
  39. extern int sysCallArraySize;
  40.  
  41. #endif _SYSCALLS
  42.  
  43.